package service.impl;

import java.util.List;

import dao.UserDAO;
import dao.impl.UserDAOImpl;
import entity.User;
import service.UserService;

public class UserServiceImpl implements UserService{
	
	private UserDAO dao;
	public UserServiceImpl(){
		this.dao = new UserDAOImpl();
	}
	@Override
	public void addUser(User u) {
		dao.addUser(u);
	}

	@Override
	public int checkUser(String name, String pass) {
		return dao.checkUser(name, pass);
	}

}
